glcontext: assert all contexts set the version on realize()
authorBenjamin Otte <otte@redhat.com>
Tue, 25 Apr 2023 20:45:34 +0000 (22:45 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 27 Apr 2023 00:13:32 +0000 (02:13 +0200)
commit7c7a3d67ca89c6a85401166b345f88bd3ed2becd
treebc49f402277b282f2b0def61752ee0f3c24fa6ed
parentd33b82249befb596c8adfba81202d5f8552c8939
glcontext: assert all contexts set the version on realize()

Now that all contexts do that, insist that they keep doing it.

And because they keep doing it, we can support querying the GL version
from gdk_gl_context_get_version() without requiring the context to be
made current.
gdk/gdkglcontext.c